#ifndef PLAYER_H
#define PLAYER_H

#include <QObject>
#include <QUrl>

class PlayerPrivate;
class Player: public QObject
{
    Q_OBJECT
public:
    Player(QObject* parent = 0);
    ~Player();
public:
    bool canPlay(const QString& mimeType);
    void play(const QUrl& url);
    void pause();
    void stop();
    QWidget* widget() const;
    void connectAuthenticator(QObject* receiver, const char* method);
private:
    PlayerPrivate* d;
};

#endif // PLAYER_H
